home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
ddj0897.zip
/
DYN401.ZIP
/
examples
/
exam13
/
m16.dm
< prev
next >
Wrap
Text File
|
1995-05-02
|
2KB
|
89 lines
# Makefile designed for use by the DMAKE.EXE utility and
# Microsoft Visual C/C++ 16 bit
TARGET = main
C_SRC = main.c
CLASS_SRC = class1.d
BINDIR = ..\..\bin
LIBDIR = ..\..\lib
INCDIR = ..\..\include
.IF $(DEBUG)
CFLAGS = -nologo -I$(INCDIR) -AL -Gf -WX -Zi -Od -Or
LFLAGS = /NOI /NOE /PACKC:65500 /co
.ELSE
CFLAGS = -nologo -I$(INCDIR) -AL -Gf -WX -Oit
LFLAGS = /NOI /NOE /PACKC:65500
.END
GFLAGS = -I$(INCDIR) -AL -nologo -Ozax
LIBS = $(LIBDIR)\dynldm.lib
OBJS = {$(C_SRC:b)}.obj {$(CLASS_SRC:b)}.obj
CC = cl
.d.c .PRECIOUS :
$(BINDIR)\dpp -g -p $<
# Since DMAKE diversions treat the backslach like an escape sequence it is
# necessary to double up the backslashes located in paths
LIBS2 := $(LIBS:s/\/\\/)
OBJS2 := $(OBJS:s/\/\\/)
$(TARGET).exe : generics.1 generics.h generics.obj $(OBJS) $(LIBS)
link /BATCH @$(mktmp $(OBJS2:t" +\n") generics.obj\n$*.exe\nnul $(LFLAGS)\n$(LIBS2);\n)
generics.h : $(CLASS_SRC)
$(BINDIR)\dpp -g -t -h -p @$(mktmp $(^:t"\n")\n)
generics.c : generics.h
$(BINDIR)\dpp -g -c
generics.obj : generics.c
$(CC) -c $(GFLAGS) generics.c
generics.1 :
$(BINDIR)\dpp -g $(INCDIR)\generics.h -h -p @$(mktmp $(CLASS_SRC:t"\n")\n)
@echo Done >generics.1
newgens:
$(BINDIR)\dpp -g $(INCDIR)\generics.h -h -p @$(mktmp $(CLASS_SRC:t"\n")\n)
@echo Done >generics.1
clean:
rm -zq {$(CLASS_SRC:b)}.c
rm -zq *.obj
rm -zq *.exe
rm -zq *.ex1
rm -zq *.res
rm -zq *.aps
rm -zq *.pdb
rm -zq *.wsp
rm -zq *.ilk
rm -zq *.bsc
rm -zq *.vcp
rm -zq *.pch
rm -zq *.sbr
rm -zq *.vcw
rm -zq *.map
rm -zq generics.*
rm -zqr WinDebug
rm -zqr WinRel